<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="__CSS__/main.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
    <script type="text/javascript" src="__EXTEND__/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/lib/layer/2.4/layer.js"></script>
    <![endif]-->
    <title></title>
</head>
<body>
<div class="contant">
<div class="row">
        <div class="top">首页>配置文件新增</div>
        <div class="content">
        <form class="form-horizontal" method="post">
            <div class="box">
                <h1>新增<span>(标*为必填项)</span></h1>
                <div class="list-block">
                    <div class="form-group">
                        <label for="bank" class="col-sm-2 control-label">银行</label>
                        <div class="col-sm-10">
                            <select id="bank" name="bank_id" class="form-control">
                            <foreach name="_bankList" item="ss" >
                                <option value={$ss.id}>{$ss.bank_name}</option>
                            </foreach>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="business_type" class="col-sm-2 control-label">交易类型</label>
                        <div class="col-sm-10">
                            <select id="business_type" name="business_type" class="form-control">
                            <foreach name="business_type" item="_bt" >
                                <option value={$key}>{$_bt}</option>
                            </foreach>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="models_form" class="col-sm-2 control-label">车辆性质</label>
                        <div class="col-sm-10">
                            <select id="models_form" name="models_form" class="form-control">
                            <foreach name="models_form" item="_mf" >
                                <option value={$key}>{$_mf}</option>
                            </foreach>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="license_type" class="col-sm-2 control-label">上牌类型</label>
                        <div class="col-sm-10">
                            <select id="license_type" name="license_type" class="form-control">
                            <foreach name="license_type" item="_lt" >
                                <option value={$key}>{$_lt}</option>
                            </foreach>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="file_type" class="col-sm-2 control-label">文件类型</label>
                        <div class="col-sm-10">
                            <select id="file_type" name="file_type" class="form-control">
                            <foreach name="file_type" item="_ft" >
                                <option value={$key}>{$_ft}</option>
                            </foreach>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="file_key" class="col-sm-2 control-label">文件名<span class="red">*</span></label>
                        <div class="col-sm-10">
                          <input name="file_key" type="text" class="form-control" id="file_key" >
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="e_file_key" class="col-sm-2 control-label">字段名<span class="red">*</span></label>
                        <div class="col-sm-10">
                          <input name="e_file_key" type="text" class="form-control" id="e_file_key" >
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="is_pic" class="col-sm-2 control-label">是否视频</label>
                        <div class="col-sm-10">
                          <!--<input name="is_pic" type="text" class="form-control" id="is_pic" >-->
                            <select class="form-control" id="is_pic" name="is_pic">
                                <option value="0">
                                    视频
                                </option>
                                <option value="1">
                                    图片
                                </option>

                            </select>

                        </div>
                    </div>

                    <div class="form-group">
                        <label for="sort" class="col-sm-2 control-label">排序<span class="red">*</span></label>
                        <div class="col-sm-10">
                            <input placeholder="值越小越靠前,默认0" name="sort" type="text" class="form-control" id="sort" value="{$info.sort}">
                        </div>
                    </div>
                    <!-- <div class="form-group">
                        <label for="file_value" class="col-sm-2 control-label">文件地址</label>
                        <div class="col-sm-10">
                            <input name="file_value" type="text" class="form-control" id="file_value" >
                            <img id="ajax_content" src="{$info.headimg}" width="100"/>
                            <input type="hidden" id="img_box" name="headimg" value="{$info.headimg}"/>
                            <input id="fileId" type="file" multiple="multiple" name="file" class="uploadA" value="{$pic}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="department" class="col-sm-2 control-label">税</label>
                        <div class="col-sm-10">
                            <foreach name="financeRanges" item="_vfg" >
                                <label class="checkbox-inline">
                                  <input type="checkbox" name='finance_range[]' value={$key}>{$_vfg}
                                </label>
                            </foreach>
                        </div>
                    </div> -->
                </div>
            </div>
            <div class="box">
                <h1>操作</h1>
                <div class="list-block">
                    <input type="submit" class="button01" value="提交">
                    <input type="button" class="button01" value="重置">
                </div>
            </div>
        </form>
        </div>
    </div>
</div>
<script src="{:COM}js/ajaxfileupload.js"></script>
<script type="text/javascript">
  $('.uploadA').change(function(){
    $.ajaxFileUpload({
        url:'{:U("Upload/logo")}',//处理图片脚本
        secureuri: false,
        fileElementId :'fileId',//file控件id
        dataType : 'text',
        success: function (data){
            $("#ajax_content").attr("src",data);
            $("#img_box").attr("value",data);
        },
        error: function(data){
            alert(data+"333");
        }
    })
});
</script>
</body>
</html>